package demo12;

public class SyncDemo2 {
    void method1(){}

    synchronized void method2(){}

    static synchronized void method3(){}

    void method4(){synchronized (this){}}

    static void method5(){
        synchronized (SyncDemo2.class){}
    }

    void method6(){
        synchronized (SyncDemo2.class){}
    }
}

